const app = getApp()
const netRequest = require("../../utils/requestUtil.js")

Page({
  data: {
    items: []
  },
  //事件处理函数
  bindViewTap: function (event) {
    console.log(event.currentTarget);
    wx.navigateTo({
      url: '/pages/teaching_sub_page/teaching_sub_page?title=' + event.currentTarget.dataset.title,
    })
  },
  onLoad: function () {
    var self = this;
    netRequest({
      url: "/some_hot_category",
      data: {},
      success: function (res) { 
        self.setData({ items: res });
      },
      fail: function () { },
      complete: function () { }
    }); 
  }
})
